﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>	
<div class="right" style="font-family: '微软雅黑';">
	<div class=" weiz">
		<a href="" class="fh">首页</a> ><a href="new/1.html" class="fh">新闻动态</a> > <a
			href="javascript:void(0)" class="fh">正文</a>
	</div>
	<div class="ab_cont">
		<div class="news_title" style="font-family: '微软雅黑'">${news.name }</div>
		${news.content }
		<!-- 翻页开始 -->
		<div class="news_pz">
			<ul>
				<li>上一篇：
					<c:choose>
						<c:when test="${prev == null }">
							无
						</c:when>
						<c:otherwise>
							<a href="new/view/${prev.id }.html" class="sp">
								<c:choose>
									<c:when test="${fn:length(prev.name) < 15 }">
										${prev.name }
									</c:when>
									<c:otherwise>
										${fn:substring(prev.name, 0, 14) }...
									</c:otherwise>
								</c:choose>
							</a>
						</c:otherwise>
					</c:choose>
				</li>
				<li>下一篇：
					<c:choose>
						<c:when test="${next == null }">
							无
						</c:when>
						<c:otherwise>
							<a href="new/view/${next.id }.html" class="sp">
								<c:choose>
									<c:when test="${fn:length(next.name) < 15 }">
										${next.name }
									</c:when>
									<c:otherwise>
										${fn:substring(next.name, 0, 14) }...
									</c:otherwise>
								</c:choose>
							</a>
						</c:otherwise>
					</c:choose>
				</li>
			</ul>
		</div>
		<!-- 翻页结束 -->
	</div>
</div>